﻿using System;
using System.Collections.Generic;
using UnityEngine;
public class GestureHelper
{
	public  static Vector3 GetVector3FromJoint(Windows.Kinect.Joint joint)
    {
        return new Vector3(joint.Position.X * 10, joint.Position.Y * 10, joint.Position.Z * 10);
    }
	public static Vector3 GetVector3FromJoints(Windows.Kinect.Joint jointStart,Windows.Kinect.Joint jointEnd)
    {
        Vector3 posStart = GetVector3FromJoint(jointStart);
        Vector3 posEnd = GetVector3FromJoint(jointEnd);
        return posEnd - posStart;
    }
}